#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib,urllib2,re,os,cookielib,xbmc

#author:
#elypter
#-mail:elypter@yahoo.de
#
#I This file explaines the interfaces to oracle (what wich function does, and wich values it returnes)
#Everythin mentioned here is related to the "hoster2" interface
#All hoster-plugins should be placed in the /plugins/hoster/oracle2 directory and only these
#
#If you want to see a completed plugin open one of these:  in /plugins/hoster/oracle2

debug=1
dstr=""

def check(url):
	#returnes 1 if the url corresponds to the hosterplugin, else 0

def get_regexp():
	#returnes a Regular Expression witch is able to a uniqe id or url of this hoster
	
def get_name():
	#returnes the name of the hoster(=filename without .py)
def join(id):
	#creates an url out of the response match of the RegExp returned by get_regexp()
	
def get_link1(url):
	#takes a videopage-url 
	#
	#returnes #status,link,image,title,filename,captcha,hoster
	
	#not all entrie must be different to ""
	#possible values for status:
	#	got		a videolink was found
	#	fail	no videolink was found
	#	captcha	a captcha code must be entered
	
def get_link2(url1,code):
	#should take the url that get_link1 returned when a captcha was needed
	#
	#returnes #status,link,image,title,filename,captcha,hoster

	#not all entrie must be different to ""
	#possible values for status:
	#	got		a videolink was found
	#	fail	no videolink was found
	#	wrongcaptcha	the entered captch code is wrong